package cn.java76.springboot.demo1;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.core.io.support.SpringFactoriesLoader;

//@ImportResource("xxx.xml")
@SpringBootApplication
//>>>@ComponentScan(basePackages = "cn")
@MapperScan("cn.java76.springboot.demo1.dao")//映射文件接口的位置
//>>@EnableCaching
public class Demo1Application extends SpringBootServletInitializer {
    public static void main(String[] args) {
        //SpringFactoriesLoader f=null;
        SpringApplication.run(Demo1Application.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return super.configure(builder);
    }
}
